package org.qufenqi.api.service;

import org.qufenqi.api.common.CommonResponse;
import org.qufenqi.api.entity.Account;
import org.springframework.web.bind.annotation.RequestBody;

public interface AccountService {

    //注册
    CommonResponse<Account> register(Account account);

    //登录
    CommonResponse<Account> login(String name,String psw);

    //手机验证码
    CommonResponse<String> getMsg(String number) throws Exception;

    //身份证验证
    CommonResponse<Object> checkID(String name,String ID);

    //插入用户身份证号
    CommonResponse<Account> insertUserID(String username,String idnumber);

    //验证学生证号
    CommonResponse<String> checkStudentId(String school,String studentName,String studentId);

    //插入学生证号
    CommonResponse<String> insertStudentId(String username,String studentId);

    //改密码
    CommonResponse<String> changePSW(String username,String psw);

    //更新信息
    CommonResponse<Account> getUserInfo(String username);

    //加钱
    CommonResponse<Account> addMoney(String username,double money);
}
